/*
游戏等待房间
自定义样式
*/
:root {
    --primary-color: #6c5ce7;
    --secondary-color: #a29bfe;
    --accent-color: #fd79a8;
    --dark-color: #2d3436;
    --light-color: #f5f6fa;
}

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    margin-bottom: 2rem;
}


.room-title {
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.room-id {
    font-size: 0.9rem;
    opacity: 0.9;
}

.player-container {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-bottom: 2rem;
}
/*玩家状态*/
.player-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.player-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.player-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    display: block;
}

.player-name {
    font-weight: 600;
    margin: 1rem 0 0.5rem;
    text-align: center;
    color: var(--dark-color);
}

.player-status {
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    text-align: center;
    display: inline-block;
    margin: 0 auto;
}

/*观战席*/
.status-ready {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.status-not-ready {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}
.current-user-label {
    position: absolute;
    top: 10px;
    left: 5px;
    background-color: #dc3545;
    color: #000;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.host-label {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ffc107;
    color: #000;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.player-actions {
    margin-top: 1.5rem;
}

.btn-action {
    border-radius: 50px;
    font-weight: 600;
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-swap {
    background-color: rgba(108, 92, 231, 0.1);
    color: var(--primary-color);
}

.btn-swap:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-spectate {
    background-color: rgba(253, 121, 168, 0.1);
    color: var(--accent-color);
}

.btn-spectate:hover {
    background-color: var(--accent-color);
    color: white;
}

.control-panel {
    background-color: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.btn-add-player {
    background-color: var(--primary-color);
    color: white;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-add-player:hover {
    background-color: #5a4bd6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

.spectator-container {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.spectator-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.spectator-item {
    display: flex;
    position: relative;
    align-items: center;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
    background-color: var(--light-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
}

.spectator-empty-state:hover {
    display: flex;
    align-items: center;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
    background-color: var(--light-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.host-spectator-name{
    margin-top: 1.5rem;
    margin-left: 0.3rem;
    font-weight: 500;
    color: var(--dark-color);
}
.spectator-name {
    margin-left: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

.section-title {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    /*下划线*/
    text-decoration: none;
}

@media (max-width: 768px) {
    .player-avatar {
        width: 100px;
        height: 100px;
    }

    .player-card {
        padding: 1rem;
    }
}